export default {
  namespaced: true,
  state: {
    testname: "admin",
  },
  actions: {
    admintest(ctx) {
          return new Promise((resolve, reject) => { 
              // console.log(3344)
              ctx.commit("dotest", "aaabbb");
              resolve();
          })
    },
  },
  mutations: {
    dotest(state, res) {
          state.testname = res;
    }
  },
  getters: {
      gtest: state => state.testname
  },
};